package com.fph.design.factory;

import java.util.concurrent.TimeUnit;

/**
 * 定义适配器接口
 * @InterfaceName ICacheAdapter
 * @Description TODO
 * @Author fph
 * @Date 2024-07-10 9:11
 **/
public interface ICacheAdapter {

    String get(final String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
